<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script>
      //1.语法结构 条件表达式 ？ 表达式1：表达式2
      //如果结果为真则返回表达式1 否则返回表达式2
      var num = 10;
      var result = num > 5 ? "yes" : "no";
      console.log(result);
    </script>
  </head>
  <body></body>
</html>
